package com.xiaoyun.repository;

import com.xiaoyun.pojo.Carousel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CarouselRepository extends JpaRepository<Carousel, String> {

    List<Carousel> findByIsShowOrderBySortDesc(Integer isShow);
}
